home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
basic
/
hugearr.zip
/
HUGEERAS.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-02
|
559b
|
27 lines
#define NOCOMM
#include <windows.h>
#include "hugearr.h"
/* Erase a previously-dimensioned huge array. */
/* VBM: Declare Function VBHugeErase% Lib "hugearr.dll" Alias "VBHugeErase" (ByVal hArray%) */
int FAR PASCAL
VBHugeErase(int hArray)
{
PHUGEDESC pArray; /* pointer to array descriptor */
DecCheckHandle(hArray);
pArray = (PHUGEDESC) LocalLock(hLocalMem) + hArray;
CheckNotAllocYet(pArray);
/* free the memory */
GlobalFree(pArray -> handle);
pArray -> handle = NULL;
LocalUnlock(hLocalMem);
return HA_OK;
}